import Vue from 'vue'
import App from './App'
import store from './script/store.js'
import mixins from '@/script/mixin.js'
import { axios } from '@/script/axios.js'
import attention from '@/script/attention.js'

import uView from "uview-ui";

// 注入 uView 
Vue.use(uView);
uni.$u.setConfig({
	// 修改$u.config对象的属性
	config: {
		// 修改默认单位为rpx，相当于执行 uni.$u.config.unit = 'rpx'
		unit: 'rpx'
	},
	// 修改$u.props对象的属性
	props: {
		// 修改radio组件的size参数的默认值，相当于执行 uni.$u.props.radio.size = 30
		radio: {
			size: 15
		}
	}
})

import initModel from "@/script/modelStore.js";
initModel(Vue);
// 注入 attention  
Vue.prototype.$attention =  attention;
// 注入 axios  55555
Vue.prototype.$axios = axios
// 注入 mixins  
Vue.mixin(mixins)

Vue.config.productionTip = false
App.mpType = 'app'


const app = new Vue({
    ...App,
	store,
})

app.$mount()
